package com.gxa.park.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mincheung
 * @since 2022-07-18
 */
@TableName("tb_street")
@ApiModel(value = "Street对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Street implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键自增长")
      @TableId(value = "str_id", type = IdType.AUTO)
    private Integer strId;

    @ApiModelProperty("路段名称")
    @TableField("str_name")
    private String strName;

    @ApiModelProperty("路段类型")
    @TableField("str_type")
    private String strType;

    @ApiModelProperty("所属区域外键")
    @TableField("str_area")
    private Integer strArea;

    @ApiModelProperty("创建时间")
    @TableField("str_create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime strCreateTime;

    @ApiModelProperty("详细地址")
    @TableField("str_detail")
    private String strDetail;

    @ApiModelProperty("街道收费标准表id")
    @TableField("str_rates_id")
    private Integer strRatesId;

}
